Find the first number is tuple in python